package com.lyp.crm.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lyp.crm.dao.LogjMapper;
import com.lyp.crm.entity.Fenye;
import com.lyp.crm.entity.Logj;
@Service
public class LogjdaoImp implements Logjdao {
	@Autowired
	private LogjMapper logjmapper;
	@Override
	public Fenye<Logj> SelectLogj(Fenye<Logj> fenye) {
		List<Logj> list = logjmapper.SelectLogj(fenye);
		System.out.println(list);
		Integer count = logjmapper.SelectLogjCount(fenye);
		fenye.setRows(list);
		fenye.setTotal(count);
		return fenye;
	}

	@Override
	public Integer insertLogj(Logj logj) {
		// TODO Auto-generated method stub
		return logjmapper.insertLogj(logj);
	}

}
